import javax.swing.*;

/**
 * Created by ospip on 2018/10/31.
 * Copyright (c) 2018 LLAP. All rights reserved.
 */
public class PanelDirector {
    PanelBuilder builder;

    public PanelDirector() {

    }

    public PanelDirector(PanelBuilder b) {
        this();
        this.setBuilder(b);
    }

    public void setBuilder(PanelBuilder builder) {
        this.builder = builder;
    }

    public JPanel build() {
        return builder.build();
    }
}
